package com.power.shop.api.controller;


import com.power.shop.api.vo.OrderVO;
import com.power.shop.commons.bean.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 订单接口
 * @author WangGang
 * @date 2021/10/27
 */
@RestController
@RequestMapping("order")
public class OrderController {
    /**
     * 获取订单信息
     * @param orderNo 订单id
     * @return
     * @author WangGang
     * @date 2021/10/27
     */
    @GetMapping("get")
    public Result<OrderVO> getOrder(String orderNo) {
        OrderVO orderVO=new OrderVO();
        orderVO.setOrderNo(orderNo);

        Result result=new Result();
        result.setCode(200);
        result.setData(orderVO);
        result.setMsg("ok");
        return result;
    }

}
